local blaze = require "blaze"
local app = require "app"
local game = app.game.running

local M = game.kbe.component("Seat")

function M.__init__(self)
end

function M:set_no(old)
    if blaze.kbe.player() == self.owner then
        self.log.debug(string.format("我的座位号：%s", self.no))
    end
    game.store.room.set_player_seat({
        old = old,
        player = self.owner
    })
end

function M:change(target_no)
    self:cellCall("change", target_no)
end

return M